# Run as a stand-alone program to extract features from image files and dump on a single csv file.

from components.processor import DataProcessor
import config

def prepare(dataPath, alphabets, dumpFolder, extension):
    d = DataProcessor(dataPath, alphabets, dumpFolder, extension)
    f = d.extractData()
    return f

if __name__ == '__main__':
    x = prepare(config.trainingDataPath, config.alphabets, config.dumpFolder, config.extension)
    x = prepare(config.testingDataPath, config.alphabets, config.dumpFolder, config.extension)